const routes = [
  {
    path:'/',
    redirect:'/home'
  },
  {
    path:'/home',
    component:() => import("@/view/home/home.vue")
  },
  {
    path:'/order',
    component:() => import("@/view/order/order.vue")
  },
  {
    path:'/profile',
    component:() => import("@/view/profile/profile.vue"),
    children:[
     { 
      path:'Message',
      component:()=> import("@/view/profile/cpns/Message.vue"),
    },
    {
      path:'about',
      component:()=> import("@/view/profile/cpns/about.vue"),
    }
    ]
      
  },
  {
    path:'/favor',
    component:() => import("@/view/favor/favor.vue")
  },
  {
    path:'/city',
    component:() => import("@/view/city/city.vue"),
    meta:{
      hideTabBar:true
    }
  },
]
export default routes